]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
tests: Fix a warning
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 21 Feb 2018 11:40:55 +0000 (12:40 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 21 Feb 2018 13:30:30 +0000 (14:30 +0100)
Gjs now warns about excess parameters passed to functions, so don't
use Gtk.main_quit directly as signal callback.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/38

tests/interactive/test-title.js

index 9dea45f8e73ae869166d8b059f21bd96f30ae89c..9df90218a2a6da6e6301049217d0b5b602a4968c 100755 (executable)
@@ -21,7 +21,9 @@ function main() {
     Gtk.init(null);
 
     let win = new Gtk.Window({ title: nextTitle() });
-    win.connect('destroy', Gtk.main_quit);
+    win.connect('destroy', () => {
+        Gtk.main_quit();
+    });
     win.present();
 
     Mainloop.timeout_add(5000, function() {